package com.zhijiang.hospital.controller;

import com.zhijiang.hospital.entity.dto.HospitalIndexDto;
import com.zhijiang.hospital.service.HospitalIndexDtoService;
import com.zhijiang.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 75936
 * @version 1.0
 * @project IndexDataOfTertiaryHospitals
 * @description
 * @date 2023-03-07 17:31:47
 */
@Api(value = "三级医院数据", tags = "三级医院数据")
@RestController
@RequestMapping("HospitalIndex")
public class HospitalIndexDtoController {

    @Autowired
    HospitalIndexDtoService hospitalIndexDtoService;

    @ApiOperation("三级医院数据查询")
    @GetMapping("getHospitalIndexData")
    public Result getHospitalIndexData() {
        List<HospitalIndexDto> hospitalIndex = hospitalIndexDtoService.findHospitalIndex();
        return Result.ok(hospitalIndex);
    }


}
